﻿package {
	import flash.display.Sprite;
	import com.kerry.util.ClassUtil;
	/**
	 * com.kerry.util.ClassUtil 类的演示文件
	 * @author PhoenixKerry（http://blog.sina.com.cn/yyy98）
	 */
	public class ClassUtilDemo extends Sprite {
		
		public function ClassUtilDemo() {
			var person:Person = ClassUtil.getInstance(Person, "Kerry", 23) as Person;
			trace(person.name, person.age);
		}
		
	}
}

class Person {
	public var name:String;
	public var age:uint;
	
	public function Person(_name:String, _age:uint) {
		name = _name;
		age = _age;
	}
	
}